﻿@using SchoolPointe.Menus.Enums
@using SchoolPointe.Menus.Models
@using Orchard.ContentManagement

@{ 
    var part = ((IContent)Model.ContentItem).As<BetterMenuItemPart>();
    var description = part.MenuItemType.Description();
    string menuItemType = part.MenuItemType.ToString();
}

        
<div class="sp-menu-collapse">
    <h4><a href="#">Add New @description</a></h4>
    <div>
        <div class="edit-form">
            <input type="hidden" name="prefix" value="@Model.ParentPrefix" />
            @Display(Model.Child)
        </div>
        <button class="secondaryAction addMenuItem" value="@Url.Action("Create", "MenuItemAdmin", new { area = "SchoolPointe.Menus", menuId = Model.MenuId })">Add to Menu</button>                
        <span class="ajax-indicator">Saving...</span>
    </div>
</div>



